const path = require('path')
const vantChange = path.resolve(__dirname, './src/assets/vantStyle/less.less')

module.exports = {
    configureWebpack: {
        devtool: 'source-map'
    },
    runtimeCompiler: true,
    publicPath: './',
    css: {
        loaderOptions: {
            less: {
                modifyVars: {
                    // 或者可以通过 less 文件覆盖（文件路径为绝对路径）
                    hack: `true; @import "${vantChange}";`,
                },
            },
        },
    },
}

